package com.test.enums;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class Page {

    private int page;   //页码
    private int limit;  //页面条数

    public boolean isNull(){
        if("0".equals(String.valueOf(page))
                || "null".equals(String.valueOf(page))
                || page <= 0) {
            return true;
        }
        if("0".equals(String.valueOf(limit))
                || "null".equals(String.valueOf(limit))
                || limit <= 0) {
            return true;
        }
        return false;
    }
}

